<?php
/**
 * ============================================================================
 * Doxt Version: 1.0           
 * Web: http:
 * Copyright (C) 2007 - 2010 Doxt Technology Inc., All Rights Reserved.
 * ---------------------------------------------
 * $Date: 2008.4.8
*/

  if ($_POST["btn_sub"])
  {
    include_once("sub_edit_news.php");
	exit(0);
  }
/* 分类列表文件,显示所有的分类 */
  include("list_cate.php");
 
  $id=$_GET['id'];
  $query = "SELECT * FROM $TBL_CONSULT where id=$id";  
  $result = mysql_query( $query ) or die(mysql_error());
  $rows = mysql_fetch_array( $result); 
  $tpl -> set_file(array("main" => "reback2.htm"));  
  $tpl -> set_block("main","TYPE_LIST","type_list"); 
  $tpl -> set_var(array(
                         "reback"		=> $rows['reback'],
						 "id"	=> $rows['id'],		
                       ));
  $tpl -> set_var( $conf);
  $tpl -> parse("Output", "main");
  $tpl -> p("Output");
  exit(0);
?>